#ifndef _FORM_MJS_H_
#define _FORM_MJS_H_
#include "mj.h"

//成型牌的类型
enum ZU_TYPE
{
	PENG = 0,       //碰
	FANG_GANG = 1,  //放杠
	MING_GANG = 2,  //明杠
	ANG_GANG  = 3,  //暗杠
};

struct MJZ
{
	ZU_TYPE zu_type;
	std::vector<Mj> zu_mjs;
	int from_seat;
};

class FormMjs
{
	public:
		FormMjs();
		~FormMjs();
		
		int add_form(ZU_TYPE form_type, Mj mj, int from_seat = 0);
		bool check_same_ke_mj(Mj mj);	
		void clear() { form_mjz.clear();}
		int get_one_mj_num(Mj ji_mj);

	public:
		std::vector<MJZ> form_mjz;	
};


#endif
